<?php function _tag_ask_tag_ask_list($data, $number, $rows, $count, $page, $pages, $setting){ global $PHPCMS,$MODULE,$M,$CATEGORY,$TYPE,$AREA,$GROUP,$MODEL,$templateid,$_userid,$_username;@extract($setting);?><table cellpadding="0" cellspacing="0" class="table_list">
  <tr>
    <th>标题</th>
    <th width="50">状态</th>
    <th width="50">回答数</th>
    <th width="110">提问时间</th>
  </tr>
  <?php if(is_array($data)) foreach($data AS $n => $r) { ?>
  <tr>
    <td class="align_left" style="padding-left:5px"><?php if($r['reward']) { ?><span style="color:orange;"><img src="images/icon_credit.gif" width="12" height="11"><?php echo $r['reward'];?> </span><?php } ?>
<a href="<?php echo ask_url($r[askid]);?>" target="<?php echo $target;?>"><?php echo str_cut($r[title],$titlelen,'..');?></a> <a href="<?php echo $CATEGORY[$r['catid']]['url'];?>" style="color:gray">[<?php echo $CATEGORY[$r['catid']]['catname'];?>]</a></td>
    <td><?php if($r[status]==3) { ?>解决中<?php } elseif ($r[status]==6) { ?>已关闭<?php } else { ?>已解决<?php } ?></td>
    <td><?php echo $r['answercount'];?></td>
    <td><?php echo date('Y-m-d H:i', $r[addtime]);?></td>
  </tr>
  <?php } ?>
</table>
<?php if($pages) { ?>
<p id="pages"><?php echo $pages;?></p>
<?php } ?><?php } ?>